<template>
  <div>
    <panel-statistic></panel-statistic>
    <div class="d-flex mb-2">
      <div class="flex-2 card pr-3">
        <div class="card-body">
          <chart-customer-area></chart-customer-area>
        </div>
      </div>
      <div class="flex-1 card ml-3">
        <div class="card-body">
          <panel-notice></panel-notice>
        </div>
      </div>
    </div>
    <div class="d-flex mb-2">
      <div class="card flex-1 mr-3">
        <div class="card-body">
          <panel-task></panel-task>
        </div>
      </div>
      <div class="card flex-1 mr-3">
        <div class="card-body">
          <panel-tools :doc-id="docId"></panel-tools>
        </div>
      </div>
      <div class="card flex-1">
        <div class="card-body">
          <panel-search></panel-search>
        </div>
      </div>
    </div>

    <div class="text-muted text-center" style="line-height: 1">
      <small v-html="TEXT_COPYRIGHT"></small>
    </div>

    <ul class="list-inline text-center">
      <li class="list-inline-item" v-for="(link, index) in friendLink" :key="index">
        <small>
          <a :href="link.url" target="_blank">{{ link.name }}</a>
        </small>
      </li>
    </ul>
  </div>
</template>
<script>
import PanelStatistic from '@/credit/views/city/index/PanelStatistic'
import PanelTask from './PanelTask'
import PanelTools from './PanelTools'
import PanelSearch from '@/credit/views/city/index/PanelSearch'
import ChartCustomerArea from '@/credit/views/city/index/ChartCustomerArea'
import { TEXT_COPYRIGHT } from '@/common/plugins/constant'
// import PanelMessage from '@/credit/views/city/index/message/Index'
import PanelNotice from '@/credit/views/city/index/PanelNotice'
export default {
  components: {
    // PanelMessage,
    PanelStatistic,
    PanelTask,
    PanelSearch,
    ChartCustomerArea,
    PanelTools,
    PanelNotice,
  },
  props: {},
  data() {
    return {
      height: 280,
      TEXT_COPYRIGHT,
      friendLink: [
        { name: '贵州省农业信贷担保股份有限公司', url: 'https://gznyxd.cn/' },
        { name: '铜仁市财农信贷融资担保有限责任公司', url: 'http://www.trnxdb.com/' },
      ],
    }
  },
  computed: {
    docId() {
      return this.$route.query.docId
    },
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>
<style scoped lang="scss">
.flex-2 {
  flex: 2;
}
</style>
